package com;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by webrx on 2017/6/10.
 */
public interface StuAB {
    /*@Select("select * from student")
    public List<Student> queryAll();

    @Insert("insert into student(name) values(#{name}")
    public int insert(Student student);*/
    @Select("select * from student")
    public List<Student> queryAll();

    @Insert("insert into student(id,name) values(#{id},#{name})")
    public int insert(Student student);
}
